package com.winz.cultureapp.activity;

import androidx.fragment.app.FragmentManager;
import android.widget.LinearLayout;


import com.winz.cultureapp.R;
import com.winz.cultureapp.base.BaseAppCompatActivity;
import com.winz.cultureapp.constants.Constants;
import com.winz.cultureapp.utils.SharePrefsUtil;
import com.winz.cultureapp.viewpage.WelcomeViewPager;

import butterknife.BindView;

/**
 * 引导页
 */
public class WelcomeActivity extends BaseAppCompatActivity implements WelcomeViewPager.StartListener {
    @BindView(R.id.ll_welcome)
    LinearLayout mLl_welcome;

    private FragmentManager fm;


    private boolean isLogin = SharePrefsUtil.getInstance().getBoolean(Constants.USER_INFO.IS_LOGIN,false);
    @Override
    protected int contentView() {
        return R.layout.activity_welcome;
    }

    @Override
    protected void initViews() {

        fm = getSupportFragmentManager();
        WelcomeViewPager mVp_welcome = new WelcomeViewPager(this,fm);
        mLl_welcome.addView(mVp_welcome);
        mVp_welcome.setStartListener(this);
    }

    @Override
    public void start() {
        startActivity(IndexActivity.class,true);

    }

}
